package com.anyou.mall.use.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import com.anyou.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.anyou.common.core.domain.BaseEntity;

/**
 * 用户收货地址对象 use_user_address
 *
 * @author gaochaohao
 * @date 2022-03-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@ApiModel(value = "用户收货地址")
@TableName(value = "use_user_address")
public class UserAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址id */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("地址id")
    private Long addressId;

    /** 用户编号 */
    @ApiModelProperty("用户编号")
    private Long userId;

    /** 用户姓名 */
    @ApiModelProperty("用户姓名")
    @Excel(name = "用户姓名")
    private String userName;

    /** 手机号码 */
    @ApiModelProperty("手机号码")
    @Excel(name = "手机号码")
    private String phoneNumber;

    /** 省 */
    @ApiModelProperty("省")
    @Excel(name = "省")
    private String province;

    /** 市 */
    @ApiModelProperty("市")
    @Excel(name = "市")
    private String city;

    /** 区 */
    @ApiModelProperty("区")
    @Excel(name = "区")
    private String area;

    /** 详细地址 */
    @ApiModelProperty("详细地址")
    @Excel(name = "详细地址")
    private String detailed;

    /** 是否默认地址（0否，1=是） */
    @ApiModelProperty("是否默认地址（0否，1=是）")
    @Excel(name = "是否默认地址", readConverterExp = "0=否，1=是")
    private String isDefault;



}
